import { createWebHistory, createRouter } from "vue-router";

const routes = [
  {
    path: '/',
    component: () => import('../view/login2.vue')  // 登录组件
  },
  {
    path: '/Home',
    component: () => import('../view/guPiaoView.vue')  // 首页组件
  },
  {
    path: '/register',
    component: () => import('../view/register2.vue')  // 注册组件
  },
  {
    path: '/find',
    component: () => import('../view/findpwd.vue')  // 找回密码组件
  },
  {
    path: '/update',
    component: () => import('../view/updatepwd.vue')  // 找回密码组件
  },
]

const router = createRouter({
  history: createWebHistory(), // 路由类型
  routes
})

export default router;
